import axios from './axios'

export function getColorSeason(params = { limit: 99999 }) {
  return axios({
    url: '/color/color',
    params
  })
}

//查询下拉菜单里的数据
export function getBranded() {
  return axios({
    url: '/branded-company-barcode/brandedCompanyBarcode'
  })
}
//按公司名称查询
export function getColorSeason2(params) {
  return axios({
    url: '/color/color',
    params
  })
}

export function postColorSeason(params) {
  return axios({
    method: 'post',
    url: '/color/color',
    params
  })
}
// 批量 导入
export function postColorInsertList(params) {
  return axios({
    method: 'post',
    url: '/color/insertList',
    data: params
  })
}

export function deleteColorSeason(params) {
  return axios({
    method: 'delete',
    url: '/color/color',
    params
  })
}
export function putColorSeason(params) {
  return axios({
    method: 'put',
    url: '/color/color',
    params
  })
}

export function deleteColorSeason1(params) {
  return axios({
    method: 'delete',
    url: '/color/color',
    params
  })
}

//导入
export function postExcelColor(data) {
  return axios({
    method: 'post',
    url: '/color/importColor',
    data
  })
}
